<template>
	
		<!-- 文字滚动 -->
		<uni-notice-bar scrollable="true" single="true" showIcon="true" v-if="notifyData" :text="notifyData"></uni-notice-bar>
	
</template>

<script>
	import uniNoticeBar from '@/uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar.vue'
	import api from '@/api/index.js'
	export default {
		data() {
			return {
				notifyData:''
			};
		},
		components:{
			uniNoticeBar
		},
		created() {
			this.load()
		},
		methods:{
			async load() {
				this.notifyData = await api.notifyData()
			}
		}
	}
</script>

<style>

</style>
